﻿@model IEnumerable<VideoCache.Server.Model.CompanyInfo>
@{
    ViewBag.Title = "商户管理";
    Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml";
}
<h2 class="pageTitle">@ViewBag.Title</h2>
<div class="easyui-panel wrap">
    <a href="@Url.Action("Create")" class="easyui-linkbutton">新建</a>
</div>
<table width="100%" class="ten-table">
<thead>
    <tr>
        <th style="width:50px">编号</th>
        <th style="width:200px">商户名称</th>
        <th style="width:120px">所在地区</th>
        <th style="width:80px">电话</th>
        <th style="width:80px">移动电话</th>
        <th style="width:80px">商户类型</th>
        <th style="width:80px">所有者</th>
        <th style="width:140px">上级商户</th>
        <th style="width:100px">创建时间</th>
        <th></th>
    </tr>
</thead>
<tbody>
@foreach (var item in Model)
{
    <tr>
        <td>@item.Id</td>
        <td>@Html.DisplayFor(modelItem => item.Name)</td>
        <td>@Html.DisplayFor(modelItem => item.Province) @Html.DisplayFor(modelItem => item.City)</td>
        <td>@Html.DisplayFor(modelItem => item.Telephone)</td>
        <td>@Html.DisplayFor(modelItem => item.Mobile)</td>
        <td>@Html.DisplayFor(modelItem => item.CompanyType)</td>
        <td>@Html.DisplayFor(modelItem => item.UserId)</td>
        <td>@Html.DisplayFor(modelItem => item.ParentCompanyId)</td>
        <td>@Html.DisplayFor(modelItem => item.CreateTime)</td>
        <td>
            @Html.ActionLink("详情", "Details", new { id = item.Id }) |
            @Html.ActionLink("修改", "Edit", new { id = item.Id }) |
            @Html.ActionLink("删除", "Delete", new { id = item.Id })
        </td>
    </tr>
}
</tbody>
</table>
<div class="ten-pager">
@Html.Pager("page", (int)ViewBag.PageSize, (int)ViewBag.RecordCount)
</div>